package me.wenlong.roomdemo.database

import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey

/**
 *
 * 类的描述
 *
 * @author guowenlong
 * 创建时间:2018-11-11-下午10:47
 *
 *
 */
@Entity
class OrderEntity constructor(
    @PrimaryKey
    var orderId: String,
    var price: Int
){
    override fun toString(): String {
        return "OrderEntity(orderId='$orderId', price=$price)"
    }
}